<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>用户修改模块-弹出框</title>
    <script type="text/javascript" src="https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js"></script>
    <link rel="stylesheet" href="../../static/css/layui.css" th:href="@{/css/layui.css}">

</head>
<body class="childrenBody" style="margin-top: 20px">
<form class="layui-form">

    <div class="layui-form-item" >
        <div class="layui-inline">
            <label class="layui-form-label">用户名：</label>
            <div class="layui-input-inline">
                <input type="text" name="contactalias" th:value="${ContactAlias}" class="layui-input ContactAlias" lay-verify="required" placeholder="请输入用户名">
            </div>
        </div>
    </div>

    <div class="layui-form-item" >
        <div class="layui-inline">
            <label class="layui-form-label">头像：</label>

            <div class="layui-input-inline imgs">
                 <img style="width: 100px; height: 100px;" th:src="${ContactAvatar}"/>
                 <input name="contactavatar" th:value="${ContactAvatar}" type="text" style="display: none">
            </div>
            <button type="button" class="layui-btn" id="img">
                <i class="layui-icon">&#xe67c;</i>上传图片
            </button>

        </div>
    </div>

    <div class="layui-form-item" >
        <div class="layui-inline">
            <label class="layui-form-label">名字：</label>
            <div class="layui-input-inline">
                <input type="text" name="contactname" th:value="${ContactName}" class="layui-input ContactName" lay-verify="required" placeholder="请输入名字">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">性别：</label>
        <div class="layui-input-block">
            <input type="radio" class="sex" name="sex"  value="1" title="男" th:checked="${sex==1}">
            <input type="radio" class="sex" name="sex"  value="2" title="女" th:checked="${sex==2}">
            <input type="radio" class="sex" name="sex"  value="7" title="保密" th:checked="${sex==7}">
        </div>
    </div>

    <div class="layui-form-item" >
        <div class="layui-inline">
            <label class="layui-form-label"><i class="layui-icon">&#xe676;</i>：</label>
            <div class="layui-input-inline">
                <input type="text" name="qq" th:value="${QQ}" class="layui-input QQ" lay-verify="required" placeholder="请输入qq">
            </div>
        </div>
    </div>

    <div class="layui-form-item" >
        <div class="layui-inline">
            <label class="layui-form-label"><i class="layui-icon">&#xe677;</i>：</label>
            <div class="layui-input-inline">
                <input type="text" name="wechat" th:value="${WeChat}" class="layui-input WeChat" lay-verify="required" placeholder="请输入微信号">
            </div>
        </div>
    </div>

    <div class="layui-form-item" >
        <div class="layui-inline">
            <label class="layui-form-label"><i class="layui-icon">&#xe678;</i>：</label>
            <div class="layui-input-inline">
                <input type="text"  name="phone" th:value="${phone}" class="layui-input phone" lay-verify="required" placeholder="请输入手机号">
            </div>
        </div>
    </div>


    <div class="layui-form-item" >
        <div class="layui-inline">
            <label class="layui-form-label">密码：</label>
            <div class="layui-input-inline">
                <input type="text"   name="password" th:value="${password}" class="layui-input password" lay-verify="required" placeholder="请输入密码">
            </div>
        </div>
    </div>

    <div class="layui-form-item" >
        <div class="layui-inline">
            <label class="layui-form-label">是否激活：</label>
            <div class="layui-input-inline activation">
                <input class="activation" name="activation" th:value="${activation}" th:checked="${activation==3}"  id="jihuo" type="checkbox"  lay-skin="switch" lay-filter="jh" lay-text="开启|关闭">
            </div>
        </div>
    </div>

    <div class="layui-form-item" >
        <div class="layui-inline">
            <label class="layui-form-label">权限：</label>
            <div class="layui-input-inline permission">
                <input  class="Permission" name="permission" th:value="${Permission}" th:checked="${Permission==5}"  type="checkbox"  lay-skin="switch" id="quanxian" lay-filter="qx" lay-text="开启|关闭">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn"th:value="${id}" id="ids" lay-submit="" lay-filter="addNews">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>

</form>
</body>
<script src="../../static/layui.js" th:src="@{/layui.js}"></script>
<script src="../../static/layuijs/UserModification.js" th:src="@{/layuijs/UserModification.js}"></script>
<script>

</script>
</html>